#!/bin/bash

MU_LIST="100 1000 10000 50000 100000 125000 150000 175000 200000 225000 235000 250000 300000 500000"
NUM_RUNS=20

echo "interval, min lat, max lat, avg lat, min through, max through, avg through" > summary.log

for mu in $MU_LIST; do

  COUNTER=0;

  echo "" > avgs_int_$mu.log

  while [ $COUNTER -lt $NUM_RUNS ]; do

    CMD="./getstats.awk ./logs/transactionsint_$mu"
    CMD+="_#$COUNTER.log"
 
    echo $CMD
    $CMD >> avgs_int_$mu.log
 
    let COUNTER=COUNTER+1

  done

  echo -ne "$mu," >> summary.log
  ./getavgs.awk avgs_int_$mu.log >> summary.log

done

